package com.itls.recommendedgames.mapper;

import com.itls.recommendedgames.entity.UserLibrary;
import com.itls.recommendedgames.entity.UserLibraryGameDTO;
import org.apache.ibatis.annotations.Mapper;

import java.math.BigDecimal;
import java.util.List;

@Mapper
public interface UserLibraryMapper {
    void insert(UserLibrary record);
    UserLibrary findByUserAndGame(Integer userId, Integer gameId);
    List<Integer> getUserGameIds(Integer userId);
    boolean updatePlayTime(Integer userId, Integer gameId, BigDecimal playTimeHours);
    List<UserLibraryGameDTO> getUserLibraryWithTags(Integer userId);
    boolean removeGame(Integer userId, Integer gameId);
}
